package com.xiaohua.tlgorders.service;


import com.xiaohua.tlgorders.entity.Address;
import com.xiaohua.tlgorders.tools.Record;

public interface AddressService {
    /**
     * 查询收货地址
     * @param userId 用户id
     * @return
     */
    Record selAddress(Integer userId);

    /**
     * 添加收货地址
     * @param address
     * @return
     */
    Record addAddress(Address address);

    /**
     * 修改收货地址
     * @param address
     * @return
     */
    Record modifyAddress(Address address);

    /**
     * 删除收货地址
     * @param addressId 收货地址id
     * @return
     */
    Record deleteAddress(Integer addressId);
}
